package com.eastfair.pay.enums;

import lombok.Getter;

/**
 * 交易记录交易状态.
 *
 * @author dqq
 * @date 2023 /2/17
 */
@Getter
public enum TransactionStatusEnum {

    /**
     * Payed transaction status enum.
     */
    PAYED("PAYED", "已缴"),

    /**
     * Un pay transaction status enum.
     */
    UN_PAY("UN_PAY", "未缴纳"),

    /**
     * Paying transaction status enum.
     */
    PAYING("PAYING", "支付中"),

    /**
     * Refunding transaction status enum.
     */
    REFUNDING("REFUNDING", "退款中"),

    /**
     * Has refund transaction status enum.
     */
    HAS_REFUND("HAS_REFUND", "已退款"),

    /**
     * Refund fail transaction status enum.
     */
    REFUND_FAIL("REFUND_FAIL", "退款失败"),

    /**
     * Cancel transaction status enum.
     */
    CANCEL("cancel", "取消"),
    ;

    private String code;

    private String text;

    TransactionStatusEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }
}